<cfoutput>
	#dspDocumentHeader()#
	<h2>PRN Medication Log</h2>
	<form>
		<cfif PARAMS.key NEQ 0>#dspFormButtons(key=PARAMS.key, action=PARAMS.controller)#</cfif>
		<fieldset>
			<table class="forms" cellpadding="10">
				<tr>
					<th class="title">Date/Initials</th>
					<th class="title">Medication</th>
					<th class="title right">Date:</th>
					<cfloop from="1" to="6" index="intCol">
						<th class="title">	#textFieldTag(id="", class="date", name="", value="")#</th>
					</cfloop>
				</tr>
				
				<cfloop list="Time,Dose,Initials" index="Label">
					<tr>
						<cfloop from="1" to="9" index="intCol">
								<cfif intCol EQ 1 AND Label IS "Time">
									<td rowspan="3">&nbsp;</td>
								<cfelseif intCol EQ 2 AND Label IS "Time">
									<td rowspan="3">
										<dl>
											<cfloop list="Name,Dose,Frequency,Indication" index="Label2">
												<dt>#Label2#: <input type="text" /></dt>
											</cfloop>
										</dl>
									</td>
								<cfelseif intCol EQ 3>
									<th class="title right">#Label#: </th>
								<cfelseif intCol GT 3>
									<td>
										<cfif label IS "time">
											#dateTimeSelectTags(name="test#label#", twelveHouse=true)#
										<cfelse>
											#textFieldTag(id="#PARAMS.key#", class="normal", name="#PARAMS.key#", value="")#
										</cfif>
									</td>
								</cfif>
						</cfloop>
					</tr>
				</cfloop>
			</table>
			
			<h4>Consumer Name: <span style="font-weight: normal;">#Consumer.firstName# #Consumer.lastName#</span></h4>
		</fieldset>
		<cfif PARAMS.key NEQ 0>#dspFormButtons(key=PARAMS.key, action=PARAMS.controller)#</cfif>
	<form>
</cfoutput>